package jasima.engine.simulate.execute;

import jasima.engine.simulate.execute.listener.DefWorkStationListener;
import jasima.engine.simulate.execute.source.DefJobSource;
import jasima.shopSim.core.*;
import jasima.shopSim.util.MachineStatCollector;
import lombok.Data;

@Data
public class ShopExector extends Shop {
    private SimData simData;
    public ShopExector(SimData simData){
        super();
        this.simData = simData;
        //setEnableLookAhead(false);
    }

    @Override
    public void init() {
        installMachineListener(new DefWorkStationListener(simData), false);
        installMachineListener(new MachineStatCollector(), true);
        addJobSource(new DefJobSource(simData));
    }

    @Override
    public void done() {
        super.done();
    }
}
